<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
  <link href="/css/img/favicon.ico" mce_href="/css/img/favicon.ico" rel="icon" type="image/x-icon">
  <title>闲钱+|帮助中心</title>
  <meta name="keywords" content="这里是关键词内容" />
  <meta name="description" content="这里是描述内容" />
  <link rel="stylesheet" type="text/css" media="all" href="/css/reset.css">
  <link rel="stylesheet" type="text/css" media="all" href="/css/border.css">
  <link rel="stylesheet" type="text/css" media="all" href="/js/layui/css/layui.css">
  <link rel="stylesheet" type="text/css" media="all" href="/css/main.css">
</head>

<body class="layui-layout-body">
  <div id="app">
    <div class="layui-layout layui-layout-admin">
      <div class="layui-header">
        <div class="layui-logo">
          <img :src="indexImg" />
        </div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
          <li class="layui-nav-item" v-for="(menu,index) in menulist" :key="index">
            <a :href="menu.link">{{menu.name}}</a>
          </li>
        </ul>
      </div>
      <!-- 内容主体区域 -->
      <div class="layui-body">
        <!-- 广告位 -->
        <div class="layout-adve">
          <div class="adve-item" :style="adver4"></div>
        </div>
        <!-- Q&A -->
        <div class="layui-row">
          <div class="layui-col-xs12">
            <div class="layui-demo">
              <ul class="layui-timeline">
                <li class="layui-timeline-item">
                  <i class="layui-icon layui-timeline-axis"></i>
                  <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">{{help.title1}}</h3>
                    <p v-html="help.message1"></p>
                  </div>
                </li>
                <li class="layui-timeline-item">
                  <i class="layui-icon layui-timeline-axis"></i>
                  <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">{{help.title2}}</h3>
                    <p v-html="help.message2"></p>
                  </div>
                </li>
                <li class="layui-timeline-item">
                  <i class="layui-icon layui-timeline-axis"></i>
                  <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">{{help.title3}}</h3>
                    <p v-html="help.message3"></p>
                  </div>
                </li>
                <li class="layui-timeline-item">
                  <i class="layui-icon layui-timeline-axis"></i>
                  <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">{{help.title4}}</h3>
                    <p v-html="help.message4"></p>
                    <table id="test" lay-filter="test"></table>
                  </div>
                </li>
                <li class="layui-timeline-item">
                  <i class="layui-icon layui-timeline-axis"></i>
                  <div class="layui-timeline-content layui-text">
                    <h3 class="layui-timeline-title">{{help.title5}}</h3>
                    <p v-html="help.message5"></p>
                  </div>
                </li>
              </ul>
            </div>
          </div>
        </div>

        <!-- 底部区域 -->
        <div class="layui-row layout-footer-bg">
          <div class="layui-col-xs12">
            <div class="layout-footer">
              <div class="footer-list border-bottom">
                <div class="ft-item">
                  <div class="ft-title">{{map}}</div>
                  <ul>
                    <li v-for="(menu,index) in menulist" :key="index">
                      <a :href="menu.link">{{menu.name}}</a>
                    </li>
                  </ul>
                </div>
                <div class="ft-item">
                  <div class="ft-title">{{server}}</div>
                  <ul>
                    <li>
                      <span v-html="contact"></span>
                    </li>
                  </ul>
                </div>
                <div class="ft-weixin">
                  <img :src="ma" />
                  <p>{{weixin}}</p>
                </div>
              </div>
              <div class="ft-link">
                <p>{{flinkTitle}}
                  <template v-for="(tlink, index) in flink">
                    <span v-if="index < flink.length - 1"><a :href="tlink.link" target="_blank">{{tlink.title}}</a>&nbsp;|&nbsp;</span>
                    <span v-else><a :href="tlink.link" target="_blank">{{tlink.title}}</a></span>
                  </template>
                </p>
                <p v-html="copyright"></p>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <script type="text/javascript" src="/js/jquery/jquery-1.12.2.min.js" charset="utf-8"></script>
  <script type="text/javascript" src="/js/vue/axios.min.js" charset="utf-8"></script>
  <script type="text/javascript" src="/js/vue/vue.js" charset="utf-8"></script>
  <script type="text/javascript" src="/js/layui/layui.js" charset="utf-8"></script>
  <script type="text/javascript">
    var vm = new Vue({
      name: "Help",
      el: "#app",
      data() {
        return {
          indexImg: "",
          menulist: {},
          bannerlist: [],
          map: "",
          server: "",
          contact: "",
          ma: "",
          weixin: "",
          flinkTitle: "",
          flink: [],
          copyright: "",
          adver4: "",
          help: {}
        }
      },
      methods: {
        getDate() {
          axios.get('/js/static/index.json')
            .then(this.dataList)
        },
        dataList(res) {
          res = res.data
          if (res.data) {
            const data = res.data
            this.indexImg = data.indexImg
            this.menulist = data.menulist
            this.bannerlist = data.bannerlist
            this.map = data.map
            this.server = data.server
            this.contact = data.contact
            this.ma = data.ma
            this.weixin = data.weixin
            this.flinkTitle = data.flinkTitle
            this.flink = data.flink
            this.copyright = data.copyright
            this.adver4 = data.adver4
            this.help = data.help
          }
        },
      },
      mounted() {
        this.getDate()
      }
    })
  </script>
  <script>
    layui.use('table', function () {
      var table = layui.table;
      table.render({
        elem: '#test',
        url: '/js/static/data.json',
        cols: [
          [{
            field: 'lv',
            width: 388,
            title: '等级'
          }, {
            field: 'exp',
            width: 388,
            title: '经验值',
          }, {
            field: 'bonus',
            width: 386,
            title: '奖励加成'
          }, ]
        ]
      });
    });
  </script>
</body>

</html>